﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Добавить новый заказ</h2>
    <% using (Html.BeginForm())
       {%>
    <p>  Название:
        <%= Html.TextBox("Name") %> </p>

     <p>  Дата:  <%= Html.TextBox("Date") %></p>
       
        <p> <%: Html.DropDownList("MaterialId", (IEnumerable<SelectListItem>) ViewData["Materials"]) %></p>
        <p> <%: Html.DropDownList("DetalId", (IEnumerable<SelectListItem>) ViewData["Detals"]) %></p>

               <p> <input type="submit" value ="Save"</p>
    <%
        }%>
</asp:Content>
